// houseList.js
const requester = require('../../common/requester.js');
const EventEmitter = require('../../common/EventEmitter.js');
const util = require('../../utils/util.js');
const user = require('../../common/user.js');
const config = require('../../common/config.js');
const formIdInit = require('../../utils/formId.js');
const commonReq = require('../../utils/commonReq.js');
const $$onLoad = require('../../appLoaded/onLoad');
const shareCodeHandler = require('../../utils/shareCodeHandler.js');
const app = getApp();

Page({
    pageIndex: {},
    result: {},
    data: {
        isAuthed: true,
        formConfig: {
            reportSubmit: true
        }
    },

    onLoad: function (param) {
        formIdInit({
            page: this
        });
        this.param = param;
        this.init();
    },

    init: function () {
        let param = this.param;
        this.setData({
            publishDesc: param.publishDesc
        })
    },

    continue: function () {
        wx.switchTab({
            url: '../housePublish/housePublish'
        })
    },

    onShareAppMessage: function (res) {
        return shareCodeHandler.getShareDetail();
    }
});